﻿$controls/header()$
$controls/navigation()$
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="180" valign="top">$controls/drawer()$ </td>
<td width="5"></td>
<td valign="top"><form method="POST" name="CategoryForm" id="CategoryForm">
$controls/tableheader(
  Caption="管理分类",
  ElementId="category"
  )$
<table width="100%" cellspacing="0" class="inner">
  <tr class="category forumtd" style="font-weight:bold;"> 
    <td width="68">删？</td>
    <td width="246">分类名称</td>
    <td width="124" align="center">是否可见</td>
    <td>描述</td>
    <td width="160" >文章数</td>
  </tr>
  $Categories:{c|
  <tr class="forumtd">
    <td><input type="checkbox" class="smallbox" name="checkedids" value="$c.Id$" /><input type="hidden" name="ids" value="$c.Id$" /></td>
    <td><input type="text" name="categoryname$c.Id$" value="$c.CategoryName$" style="width:98%;" /></td>
    <td align="center"><input type="checkbox" name="visible$c.Id$" class="smallbox" value="1" $if(c.Visible)$checked="checked"$endif$/></td>
    <td><input type="text" name="description$c.Id$" value="$c.Description$" style="width:95%;"/></td>
    <td>$c.Articles$</td>
  </tr>
  }$
  <tr class="forumtd">
    <td>新增</td>
    <td><input type="text" name="newcategoryname" style="width:98%;" /></td>
    <td align="center"><input type="checkbox" name="newvisible" class="smallbox" value="1" /></td>
    <td><input type="text" name="newdescription" style="width:95%;" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
  $controls/tablefooter()$
  <p align="center"><input type="submit" name="submit" class="button" value=" 提 交 " /></p>
</form></td>
</tr>
</table>
$controls/footer()$